package com.xing.feign.FallbackFactory;

import com.xing.Utils.Result;
import com.xing.feign.RoomFeign;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @Author <a href="https://gitee.com/a-tom-is-cry">Xing</a>
 * @Date 2025/3/18 22:03
 * @Description
 */
@Component
public class RoomFeignFallbackFactory implements FallbackFactory<RoomFeign> {
    @Override
    public RoomFeign create(Throwable cause) {
        return new RoomFeign() {
            @Override
            public Result getLiveRoomByRoomNumber(Long roomNumber) {
                return new Result();
            }
        };
    }
}
